<?php
/**
 * @author ykm 2016/4/28
 * @describe 分销王订单
 */

class apibusiness_response_order_plugin_fxw extends apibusiness_response_order_plugin_abstract {

    /**
     * 订单完成后处理
     *
     * @return void
     * @author
     **/
    public function postCreate()
    {
        if($this->_platform->_ordersdf['dealer_order_id']) {
            $data = array(
                'order_id' => $this->_platform->_newOrder['order_id'],
                'dealer_order_id' => $this->_platform->_ordersdf['dealer_order_id']
            );
            app::get('ome')->model('fxw_orders')->insert($data);
        }
    }
}